package cn.bdqn.t354.controller;

import cn.bdqn.t354.service.RoleService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("/role")
public class RoleController {
    @Resource
    RoleService roleService;

    @RequestMapping("/findAllRoles")
    @ResponseBody
    public Object findAllRoles(){
        return roleService.findAllRoles();
    }
}
